// react
import React from "react";
import ReactDOM from "react-dom/client";

// router
import { RouterProvider } from "react-router-dom";
import router from "./router";

// redux
import { Provider } from "react-redux";
import store from "./store";

// antd
import { ConfigProvider } from "antd";
import zhCN from "antd/locale/zh_CN";

// mock
import "./mock/api";

import "./index.css";

const root = ReactDOM.createRoot(document.getElementById("root"));
root.render(
  <React.StrictMode>
    <Provider store={store}>
      <ConfigProvider locale={zhCN}>
        <RouterProvider router={router} />
      </ConfigProvider>
    </Provider>
  </React.StrictMode>
);
